package site

import (
	"context"
	"github.com/gogf/gf/v2/net/ghttp"
	"hotgo/internal/library/token"

	"hotgo/api/site/v1"
)

func (c *ControllerV1) LoginLogout(ctx context.Context, req *v1.LoginLogoutReq) (res *v1.LoginLogoutRes, err error) {
	err = token.Logout(ghttp.RequestFromCtx(ctx))
	return
}
